package com.yesep.learn.design.behavioral.observer;

public class EmailUser implements IObserver {
    private final String name;

    public EmailUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.printf("邮件用户[%s]收到一条信息：%s \n", name, message);
    }
}
